From 4f65fd3307123d2b1bf2130b3ba1e699072ef853 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 19 Dec 2006 19:15:02 +0000 Subject: [PATCH] Magellan files that don't have $ in column zero now rejected instead of crashing. --- magproto.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/magproto.c b/magproto.c index c23a529a7..c5c0f7595 100644 --- a/magproto.c +++ b/magproto.c @@ -425,6 +425,12 @@ retry: } } + /* If column zero isn't a dollar sign, it's not for us */ + if (ibuf[0] != '$') { + fatal(MYNAME ": line doesn't start with '$'.\n"); + } + + isz = strlen(ibuf); if (isz < 5) { -- 2.30.2